package com.cb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cb.entity.AddressBook;

import java.util.List;

public interface AddressBookService extends IService<AddressBook> {

    //查询指定用户的全部地址
    List<AddressBook> getList(Long currentId);

    //设置默认地址
    AddressBook setDefault(AddressBook addressBook);

    //修改地址
    void updateAddress(AddressBook addressBook);

    //查询默认地址
    AddressBook getDefault();
}
